<%--
    Document   : main
    Created on : 2011-9-7, 23:03:44
    Author     : administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">
    function initialize(info)
    {
        if(info == 1)
            alert("deleted successfully");
        if(info == 2)
            alert("updated successfully");
    }
        </script>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Load Page</title>
    </head>
     <s:if test="type == 1">
        <body onload=initialize(1)>
        </s:if>
        <s:else>
        <body onload=initialize(2)>
        </s:else>
        <s:action name="ThreadAction_listThreads" executeResult="true" namespace="/">
            <s:param name="categoryID" value="#session.categoryID"/>
            <s:param name="categoryName" value="#session.categoryName"/>
        </s:action>
    </body>
</html>
